#include "cansrv.h"
#include "bsp_can.h"

CanRxMsg  CAN_Rece_Data;
CanTxMsg  CAN_Tran_Data;
uint8_t flag = 0;


void canMsgSend()
{
  uint8_t box;
  CAN_Tran_Data.StdId = 0;
  CAN_Tran_Data.ExtId = PASS_ID;
  CAN_Tran_Data.RTR = CAN_RTR_Data;
  CAN_Tran_Data.IDE = CAN_Id_Extended ;
  CAN_Tran_Data.DLC = 1;
  CAN_Tran_Data.Data[0] = 10;

  box = CAN_Transmit(CAN1,&CAN_Tran_Data);

  while(CAN_TransmitStatus(CAN1,box) == CAN_TxStatus_Failed);
				
}

